package io;

import java.io.*;
import java.nio.charset.StandardCharsets;

public class PWDemo {
    public static void main(String[] args) throws IOException {
       /*FileOutputStream fos=new FileOutputStream("pw.txt");
       OutputStreamWriter osw=new OutputStreamWriter(fos,StandardCharsets.UTF_8);
       BufferedWriter bw=new BufferedWriter(osw);
       bw.write("我是你哥哥");
       bw.close();
        */

        PrintWriter pw=new PrintWriter("pw.txt");
        pw.println("真牛逼教练");
        pw.println("不需要沉淀");
        System.out.println("已写出");
        pw.close();
    }
}
